package com.inray.nbs.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

import net.sf.json.JsonConfig;

public class Constant {
	
	public static SimpleDateFormat DF=new SimpleDateFormat("yyyy-MM-dd");   
	public static SimpleDateFormat DF1=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");   
	public static SimpleDateFormat DF2=new SimpleDateFormat("MM/dd/yyyy");  
	public static SimpleDateFormat DF3=new SimpleDateFormat("yyyyMMdd");  
	public static SimpleDateFormat DF4=new SimpleDateFormat("yyyyMMddhhmmss");
	
	public static JsonConfig jsonConfig4Date (){
		JsonConfig jf = new JsonConfig();
		jf.registerJsonValueProcessor(Date.class, new DateJsonValueProcessor("yyyy-MM-dd HH:mm:ss"));
		return jf;
	}
}
